
#
#
# standalone-js construct file
#
#



# common includes as well as common flags
# rtti and exceptions are prohibited
ccflags='-fno-rtti -fno-exceptions -DHAVE_SLEEP -Iexterns/v8/include -Isrc'

# sources reference
sources = ['main',
	'util/common',
	'util/path',
# 'bindings/system'
	'bindings/fs'
	]




# create objects list
for item in sources:
	Object('src/' + item + '.cpp', CCFLAGS=ccflags)

# create references to objects list
objs = []
for item in sources:
	objs.append('src/' + item + '.o')

# program to be generated
Program('stjs', objs, LIBS=['v8', 'pthread'], LIBPATH='externs/v8')

